#include "CCastle.h"
#include "Enum.h"

#include "Classes/TextureManager.h"
#include "SpriteMaker.h"
#include "Sprite.h"

CCastle::CCastle(SBuildingAbility const *_pSBuildingAbility)
{
	m_nHP	= _pSBuildingAbility->nHP;
	m_nDef	= _pSBuildingAbility->nDef;
	m_nX	= _pSBuildingAbility->nX;
	m_nY	= _pSBuildingAbility->nY;
}

CCastle::~CCastle(void)
{
}

void CCastle::Put(void)
{
	SharedSpriteMaker.getSprite(eBuildingTag_Castle)->setPosition(m_nX, m_nY, eBuildingTag_Castle);
}